#include "CL_News_pool.h"

CL_News_pool* CL_News_pool::news_pool_singleton = NULL;
time_t CL_News_pool::last_update = 0;
time_t CL_News_pool::interval = 0;
newsmap CL_News_pool::mynewsmap;
std::map<std::string,CL_RSS_Quelle> CL_News_pool::sources;

CL_News_pool& CL_News_pool::get_news_pool()
{
     if(!news_pool_singleton)
          news_pool_singleton=new CL_News_pool();
     return *news_pool_singleton;
};
bool CL_News_pool::add_source_url(const std::string& s)
{
     if(!CL_News_pool::sources[s])
          sources[s].set_url(s);
     return sources[s];
};
CL_News CL_News_pool::old_news_first()
{

};
CL_News CL_News_pool::random_news()
{

};
int CL_News_pool::get_news_count()
{

}
